import request from '@/utils/request'

// 查询读卡器列表
export function listCardReader(query) {
  return request({
    url: '/wvp/cardReader/list',
    method: 'get',
    params: query
  })
}

// 查询读卡器详细
export function getCardReader(id) {
  return request({
    url: '/wvp/cardReader/' + id,
    method: 'get'
  })
}

// 新增读卡器
export function addCardReader(data) {
  return request({
    url: '/wvp/cardReader',
    method: 'post',
    data: data
  })
}

// 修改读卡器
export function updateCardReader(data) {
  return request({
    url: '/wvp/cardReader',
    method: 'put',
    data: data
  })
}

// 删除读卡器
export function delCardReader(id) {
  return request({
    url: '/wvp/cardReader/' + id,
    method: 'delete'
  })
}
export function submitPushTypeForm(params) {
  return request({
    url: '/wvp/cardReader/pushTypeBatch',
    method: 'post',
    data:params
  })
}
